package net.whatmark.playavillain.meshikau.page;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import org.t2framework.commons.annotation.composite.SingletonScope;
import org.t2framework.commons.util.Logger;
import org.t2framework.t2.annotation.core.ActionPath;
import org.t2framework.t2.annotation.core.Default;
import org.t2framework.t2.annotation.core.Page;
import org.t2framework.t2.contexts.Request;
import org.t2framework.t2.contexts.WebContext;
import org.t2framework.t2.navigation.Forward;
import org.t2framework.t2.spi.Navigation;

@Page("googlemap")
public class GoogleMapPage {

	static Logger logger = Logger.getLogger(GoogleMapPage.class);

	public Navigation beforeIndex(WebContext context) {
		logger.debug("before index.");
		return null;
	}

	@Default
	public Navigation index(WebContext context) {

		return Forward.to("/pages/googlemap.jsp");
	}

	@ActionPath
	public Navigation request(HttpServletRequest request) {
		System.out.println("request.getContextPath() : "
				+ request.getContextPath());

		return Forward.to("/pages/googlemap.jsp");
	}

	@ActionPath("struts")
	public Navigation likeStrutsType(HttpServletRequest request,
			HttpServletResponse response) {
		System.out.println("request.getContextPath() : "
				+ request.getContextPath());

		return Forward.to("/pages/googlemap.jsp");
	}
}
